import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { Project, CommonListResult } from './types';

/**
 * 项目查询
 */
export function getTaskList(data: any): AxiosPromise<CommonListResult<Project>> {
  return request({
    url: '/payment/task/list',
    method: 'get',
    params: {
      ...data
    }
  });
}
/**
 * 任务修改
 */
export const taskEditInfo = (data: any) => {
  return request({
    url: `/payment/task/editInfo`,
    method: 'put',
    data
  });
};
//下载查看
export const downloadLook = (ossId: string | number) => {
  return request({
    url: `resource/oss/download/${ossId}`,
    method: 'post'
  });
};
